Therefore , each type of report would require its own report - specific intermediate data structure for holding the results , a visitor for populating the intermediate data structure , and then post - processing code for turning the intermediate data structure into the final report 因此,每一種報(bào)告類型都需要有自己的、特定于報(bào)告的中間數(shù)據(jù)結(jié)構(gòu)來(lái)存放結(jié)果,還需要一個(gè)用來(lái)填充中間數(shù)據(jù)結(jié)構(gòu)的訪問(wèn)者,以及用來(lái)將中間數(shù)據(jù)結(jié)構(gòu)轉(zhuǎn)換成最終報(bào)告的后處理( post - processing )代碼。